import 'package:flutter_house_manager/constants/index.dart';
import 'package:flutter_house_manager/utils/RequestDio.dart';

// 1. 获取公告列表
Future<dynamic> getAnnounceListAPI() => requestDio.get(HTTP_PATH.ANNOUNCE_LIST);

// 2. 获取公告详情
Future<dynamic> getAnnounceDetailAPI(String id) =>
    requestDio.get('${HTTP_PATH.ANNOUNCE_LIST}/$id');
